﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ZiChouZJJS.aspx.cs" Inherits="Web.Pages.YongShui.ZiChouZJJS" Theme="Default" %>

<%@ Register Assembly="DevExpress.Web.v15.2, Version=15.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web" TagPrefix="dx" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <script src="../../../../JS/AddEditCancel.js"></script>
    <script type="text/javascript">
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <div class="tabletitle1" align="center">
            自筹资金节水
        </div>
        <asp:UpdatePanel ID="updatePanel1" runat="server">
            <ContentTemplate>
                <div style="border: 0px solid #4486a9;">
                    <table style="width: 100%;">
                        <tr>
                            <td style="text-align: right; width: 8%;">统计年：
                            </td>
                            <td style="width: 12%;">
                                <dx:ASPxComboBox ID="concmbY" runat="server" ValueType="System.String" Width="100%">
                                </dx:ASPxComboBox>
                            </td>
                            <td style="text-align: right; width: 8%;">统计月：
                            </td>
                            <td style="width: 12%;">
                                <dx:ASPxComboBox ID="concmbM" runat="server" Width="100%">
                                    <Items>
                                        <dx:ListEditItem Text="1" Value="1" />
                                        <dx:ListEditItem Text="2" Value="2" />
                                        <dx:ListEditItem Text="3" Value="3" />
                                        <dx:ListEditItem Text="4" Value="4" />
                                        <dx:ListEditItem Text="5" Value="5" />
                                        <dx:ListEditItem Text="6" Value="6" />
                                        <dx:ListEditItem Text="7" Value="7" />
                                        <dx:ListEditItem Text="8" Value="8" />
                                        <dx:ListEditItem Text="9" Value="9" />
                                        <dx:ListEditItem Text="10" Value="10" />
                                        <dx:ListEditItem Text="11" Value="11" />
                                        <dx:ListEditItem Text="12" Value="12" />
                                    </Items>
                                </dx:ASPxComboBox>
                            </td>
                            <td style="text-align: right; width: 8%;">管理部门： 
                            </td>
                            <td style="width: 12%;">
                                <dx:ASPxComboBox ID="concmbZhanDian" runat="server" ValueType="System.String" Width="100%" AutoPostBack="true" OnSelectedIndexChanged="concmbZhanDian_SelectedIndexChanged">
                                </dx:ASPxComboBox>
                            </td>
                            <td style="text-align: right; width: 8%;">管理块：
                            </td>
                            <td style="width: 12%;">
                                <dx:ASPxComboBox ID="concmbGuanLiK" runat="server" ValueType="System.String" Width="100%">
                                </dx:ASPxComboBox>
                            </td>
                            <td style="text-align: right; width: 8%;">业务员：
                            </td>
                            <td style="width: 12%;">
                                <dx:ASPxComboBox ID="concmbYWY" runat="server" ValueType="System.String" Width="100%">                                   
                                </dx:ASPxComboBox>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: right">用户号：
                            </td>
                            <td>
                                <dx:ASPxTextBox ID="contxtYongHuH" runat="server" Width="100%"></dx:ASPxTextBox>
                            </td>
                            <td style="text-align: right">用户名：
                            </td>
                            <td>
                                <dx:ASPxTextBox ID="contxtYongHuM" runat="server" Width="100%"></dx:ASPxTextBox>
                            </td>
                            <td style="text-align: right">项目类型：
                            </td>
                            <td>
                                <dx:ASPxComboBox ID="concmbXiangMuLX" runat="server" ValueType="System.String" Width="100%">
                                </dx:ASPxComboBox>
                            </td>
                            <td style="text-align: right">日节水量：                                
                            </td>
                            <td>
                                <table style="width: 100%">
                                    <tr>
                                        <td style="width: 50%">
                                            <dx:ASPxComboBox ID="concmbRiJieSLValPrePare" runat="server" ValueType="System.String" HorizontalAlign="Center" Width="100%">
                                                <Items>
                                                    <dx:ListEditItem Text="=" Value="=" Selected="true" />
                                                    <dx:ListEditItem Text=">" Value=">" />
                                                    <dx:ListEditItem Text=">=" Value=">=" />
                                                    <dx:ListEditItem Text="<" Value="<" />
                                                    <dx:ListEditItem Text="<=" Value="<=" />
                                                    <dx:ListEditItem Text="<>" Value="<>" />
                                                </Items>
                                            </dx:ASPxComboBox>
                                        </td>
                                        <td style="width: 50%">
                                            <dx:ASPxTextBox ID="contxtRiJieSL" runat="server" Width="100%"></dx:ASPxTextBox>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td colspan="2">
                                <dx:ASPxButton ID="conbtnSearch" runat="server" Text="查找" OnClick="conbtnSearch_Click" UseSubmitBehavior="false"></dx:ASPxButton>
                            </td>
                        </tr>
                    </table>
                    <hr />
                    <dx:ASPxGridView ID="gvList1" runat="server" AutoGenerateColumns="False" KeyFieldName="ID" Theme="Aqua1" Width="100%">
                        <Columns>
                            <dx:GridViewDataTextColumn FieldName="S_TONGJIYM" Caption="统计年月" Width="100px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="S_SHURUBM" Caption="管理部门" Width="100px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="S_YONGHUH" Caption="用户号" Width="100px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="S_YONGHUM" Caption="用户名" Width="300px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="S_XIANGMULX" Caption="项目类型" Width="100px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="I_GONGCHENGSL" Caption="数量" Width="100px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="S_DANWEI" Caption="单位" Width="100px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="S_WANGONGRQ" Caption="竣工日期" Width="100px" PropertiesTextEdit-DisplayFormatString="yyyy-MM-dd">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="I_RIJIESL" Caption="日节水" Width="100px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="N_JINE" Caption="投入资金" Width="100px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="S_MIAOSHU" Caption="描述" Width="300px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Width="35px">
                                <DataItemTemplate>
                                    <asp:LinkButton ID="lnbModify" runat="server" CausesValidation="false" Text="修改"
                                        CommandArgument='<%#Eval("ID")%>' OnCommand="lnbModify_Command"></asp:LinkButton>
                                </DataItemTemplate>
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Width="35px">
                                <DataItemTemplate>
                                    <asp:LinkButton ID="lnbDel" runat="server" CausesValidation="false" Text="删除" OnClientClick="return confirm('确认删除吗？')" CommandArgument='<%#Eval("ID")%>' OnCommand="lnbDel_Command"></asp:LinkButton>
                                </DataItemTemplate>
                            </dx:GridViewDataTextColumn>
                        </Columns>
                        <Settings VerticalScrollableHeight="170" VerticalScrollBarMode="Auto" HorizontalScrollBarMode="Auto" />
                    </dx:ASPxGridView>
                    <div>
                        <table>
                            <tr>
                                <td colspan="5" style="text-align: left;">合计
                                </td>
                            </tr>
                            <tr>
                                <td style="color: Blue; font-size: 20px; font-weight: bold; padding-left: 40px;">
                                    <dx:ASPxLabel ID="lblRecordCount" runat="server" Text="ASPxLabel" Font-Bold="true" Font-Size="Medium"></dx:ASPxLabel>
                                </td>
                                <td style="padding-left: 45px;">
                                    <dx:ASPxLabel ID="lblGongChengSLSUM" runat="server" Text="数量：6" Font-Bold="true"></dx:ASPxLabel>
                                </td>
                                <td style="padding-left: 45px;">
                                    <dx:ASPxLabel ID="lblRiJieSLSUM" runat="server" Text="日节水量：716" Font-Bold="true"></dx:ASPxLabel>
                                </td>
                                <td>(立方米/日)
                                </td>
                                <td style="padding-left: 45px;">
                                    <dx:ASPxLabel ID="lblJinESUM" runat="server" Text="投入资金：96500" Font-Bold="true"></dx:ASPxLabel>
                                </td>
                                <td>(元)
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div style="text-align: right">
                        <hr />
                        <dx:ASPxButton ID="btnAdd" runat="server" Text="添加" OnClick="btnAdd_Click" UseSubmitBehavior="false">
                        </dx:ASPxButton>
                    </div>
                    <div style="height: 2px;">
                    </div>
                    <div id="GridViewContentTable" runat="server">
                        <div class="tabletitle1" align="center">
                            <asp:Label runat="server" ID="lblOperateTip">添加</asp:Label>
                        </div>
                        <div style="height: 2px;">
                        </div>
                        <table style="margin: auto; width: 70%">
                            <tr>
                                <td style="text-align: right; width: 15%">用户号：
                                </td>
                                <td style="width: 20%">
                                    <dx:ASPxTextBox ID="txtYongHuH" runat="server" Width="100%">
                                    <ClientSideEvents KeyPress="function(s,e){var key = event.keyCode;
                                                                if( key==13){if(s.GetText()==''){alert('请输入用户号。');return;}$('#btnYonghuhEnter').click();}}" />
                                                        </dx:ASPxTextBox>
                                                        <div style="display: none">
                                                            <dx:ASPxButton ID="btnYonghuhEnter" runat="server" Text="ASPxButton" OnClick="btnYonghuhEnter_Click" UseSubmitBehavior="false"></dx:ASPxButton>
                                                        </div>
                                </td>
                                <td style="text-align: right; width: 15%">用户名：
                                </td>
                                <td style="width: 40%">
                                    <dx:ASPxTextBox ID="txtYongHuM" runat="server" Width="100%" Text="" Enabled="false"></dx:ASPxTextBox>
                                </td>
                                <td style="width: 10%"></td>
                            </tr>
                            <tr>
                                <td style="text-align: right">项目类型：
                                </td>
                                <td>
                                    <dx:ASPxComboBox ID="cmbXiangMuLX" runat="server" ValueType="System.String" Width="100%" AutoPostBack="true" OnSelectedIndexChanged="cmbXiangMuLX_SelectedIndexChanged"></dx:ASPxComboBox>
                                </td>
                                <td style="text-align: right">管理部门：
                                </td>
                                <td>
                                    <dx:ASPxTextBox ID="txtZhanDian" runat="server" Width="100%" Enabled="false"></dx:ASPxTextBox>
                                    <dx:ASPxHiddenField ID="hdCollection" runat="server"></dx:ASPxHiddenField>
                                </td>
                                <td></td>
                            </tr>
                            <tr>
                                <td style="text-align: right">数量：
                                </td>
                                <td>
                                    <table>
                                        <tr>
                                            <td style="width:80%">
                                                <dx:ASPxTextBox ID="txtGongChengSL" runat="server" Width="100%"></dx:ASPxTextBox>
                                            </td>
                                            <td>
                                                <asp:Label ID="lblDanWei" runat="server" Text=""></asp:Label>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                                <td style="text-align: right">日节水量：
                                </td>
                                <td>
                                    <dx:ASPxTextBox ID="txtRiJieSL" runat="server" Width="100%"></dx:ASPxTextBox>
                                </td>
                                <td>立方米/日</td>
                            </tr>
                            <tr>
                                <td style="text-align: right">竣工日期：
                                </td>
                                <td>
                                    <dx:ASPxTextBox ID="txtWANGONGRQ" runat="server" Width="100%"></dx:ASPxTextBox>
                                </td>
                                <td style="text-align: right">投入资金：
                                </td>
                                <td>
                                    <dx:ASPxTextBox ID="txtJinE" runat="server" Width="100%"></dx:ASPxTextBox>
                                </td>
                                <td>元</td>
                            </tr>
                            <tr>
                                <td style="text-align: right">描述：
                                </td>
                                <td colspan="4">
                                    <dx:ASPxTextBox ID="txtMiaoShu" runat="server" Width="100%"></dx:ASPxTextBox>
                                </td>
                            </tr>
                        </table>
                        <table id="GridViewButtonTable" runat="server" style="width: 100%">
                            <tr>
                                <td style="text-align: right;">
                                    <hr />
                                    <dx:ASPxButton ID="btnSave" runat="server" Text="保存" OnClick="btnSave_Click" UseSubmitBehavior="false">
                                        <ClientSideEvents Click="function(s, e) {
	                                        if (ASPxClientEdit.ValidateGroup('group')) { 
                                                    e.processOnServer = true; 
                                                } 
                                                else 
                                                { 
                                                    e.processOnServer = false; 
                                                }
                                            }" />
                                    </dx:ASPxButton>
                                    <dx:ASPxButton ID="btnCancel" runat="server" Text="放弃" OnClick="btnCancel_Click" UseSubmitBehavior="false">
                                    </dx:ASPxButton>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
    </form>
</body>
</html>


